// JavaScript Document
$(function () {
	
	
	//首页弹窗 

	$.My_car = function (msg) {
        try {
            $("div[class='tc-con']").remove();
            $("div[class='tc-cover']").remove();
            $cover = $("<div class='tc-cover'id='myCover'>&nbsp;</div>");
            $main = $("<div class=\"tc-con\" id='maximPanel'></div>");
            $close = $("<a href='javascript:void(0);' class='close'>关闭</a>");
            $content = $("<div  class='tc-con-1'></div>");
            $content.html(msg);
            $main.append($close);
            $main.append($content);
            $(document.body).append($cover);
            $(document.body).append($main);
            $cover.height($(document.body).height());
            $main.show(400);
            $main.focus();
            $(".tc-cover").height($(document).height());
            var tw=$(".tc-con").width(),
			    th=$(".tc-con").height(),
				ul_h=$(".red_list").height();
				
				
			$(".tc-con").css({"margin-left":-(tw/2),"margin-top":-(th/2)});
		    
			$(".Feedback_box ul li").on("click",function(){
			  $(".Feedback_box ul li").removeClass("cur");
			  $(this).addClass("cur");
		    });
				



			
            $close.click(function () {
                $main.hide(300);
                $main.remove();
                $cover.remove();
            });
        }
        catch (ex) { alert(ex); }

    }
	
	
	$.My_Feedback = function (msg) {
        try {
            $("div[class='tc-con']").remove();
            $("div[class='tc-cover']").remove();
            $cover = $("<div class='tc-cover'id='myCover'>&nbsp;</div>");
            $main = $("<div class=\"tc-con\" id='maximPanel'></div>");
            $close = $("<a href='javascript:void(0);' class='close close_2'>关闭</a>");
            $content = $("<div  class='tc-con-1'></div>");
            $content.html(msg);
            $main.append($close);
            $main.append($content);
            $(document.body).append($cover);
            $(document.body).append($main);
            $cover.height($(document.body).height());
            $main.show(400);
            $main.focus();
            $(".tc-cover").height($(document).height());
            var tw=$(".tc-con").width(),
			    th=$(".tc-con").height(),
				ul_h=$(".red_list").height();
				
				
			$(".tc-con").css({"margin-left":-(tw/2),"margin-top":-(th/2)});
		    
			$(".Feedback_box ul li").on("click",function(){
			  $(".Feedback_box ul li").removeClass("cur");
			  $(this).addClass("cur");
		    });
				



			
            $close.click(function () {
                $main.hide(300);
                $main.remove();
                $cover.remove();
            });
        }
        catch (ex) { alert(ex); }

    }


});


